// import { request } from './request';
import request from "@/common/http/axios"
// /que-question/findAll
export function findAll(data) {
	return request({
	  url: '/que-question/findAll',
	  method: 'post',
	  data,
	});
  }
// /que-question/add
export function addquestion(data) {
	return request({
		url: '/que-question/add',
		method: 'post',
		data
	});
}


// /que-question/delete
export function delquestion(id) {
	return request({
		url: `/que-question/delete?id=${id}`,
		method: 'get',
	});
}

// 添加更新题目的方法
export function updatequestion(data) {
	return request({
		url: '/question/update',  // 根据你的实际接口调整
		method: 'put',
		data
	});
}























